<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<style>
<!--
.searchContent td label{
width:50px;
}
-->
</style>
<%--dwz分页查询 隐藏传值表单  begin --%>
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="${currentPage }" /> 
	<input type="hidden" name="numPerPage" value="${numPerPage}" /> 
	<input type="hidden" name="orderField" value="${param.orderField}" /> 
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" />
</form>
<%--dwz分页查询 隐藏传值表单  end --%>
<%--页头 检索条件区域 begin --%>
<div class="pageHeader">
<form rel="pagerForm" onsubmit="return navTabSearch(this);"	action="stock_listStockDev.action" method="post">
		<div class="searchBar">
			<table class="searchContent" >
				<tr>
					<td>
						<label>名&nbsp;&nbsp;称:</label>
						<input type="text" name="devName" value="${devName}" maxlength="20"/>
					</td>
					<td>
						<label>拼音码：</label>
						<input type="text" name="spell" value="${spell}" maxlength="20"/>
					</td>
					<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></td>
				</tr>
			</table>
		</div>
	</form>
</div>
<%--页头 检索条件区域 end --%>

<%--内容展示区域 begin --%>
<div class="pageContent">
	<%-- 工具栏  begin --%>
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="stock_addDicUI.action" rel="insideUser_addUI"  target="navTab" title="新增设备字典" ><span>新增</span></a></li>
			<li class="line">line</li>
			<li><a class="edit" href="stock_editDicUI.action?uuid={user_id}"   target="navTab" warn="请选择一个用户" title="修改设备字典"><span>修改</span>	</a></li>
			<li class="line">line</li>
			<li><a class="delete" href="stock_deleteDic.action?uuid={user_id}"  target="ajaxTodo"   title="确实要删除这些记录吗?">	<span>删除</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<%-- 工具栏 end  --%>
	<%-- 分页table列表 begin --%>
	<table class="table" width="100%" layoutH="114">
		<thead>
			<tr>
				<th width="" align="center">序号</th>
				<th width="" >供应商名称</th>
				<th width="" >设备名称</th>
				<th width="" >拼音码</th>
				<th width="" >单位</th>
				<th width="" >版本号</th>
				<th width="" >描述</th>
				<th width="" >是否启用</th>
				<%--
				<th width="">操作</th>
				 --%>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${recordList}" var="dev" varStatus="status">
			<tr target="user_id" rel="${dev.uuid }">
				<td>${(status.index+1) + (currentPage-1) * numPerPage}
				</td>
				<td>${dev.devSupplierName }</td>
				<td>${dev.devName }</td>
				<td>
				${dev.spell }
				
				</td>
				<td>${dev.devUnit }</td>
				<td>${dev.devVer }</td>
				 <td>
				${dev.describe }
				 </td>
				<td>
						<c:choose>  
				  <c:when test="${dev.ibStop==1}" >
 			  <label style="color: green">是</label>
  				 </c:when>  
  				 <c:otherwise>  
  				  <label style="color: red">否</label> 
  				 </c:otherwise>  
				</c:choose> 
				</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	<%-- 分页table列表 end --%>
	
	<%--分页信息区 begin--%>
	<%@ include file="/WEB-INF/jsp/public/panelBar.jsp"%>	
	<%--分页信息区 end--%>
</div>